$(function (){
	var handleSpeed = echarts.init(document.getElementById('handleSpeed'));
       // 指定图表的配置项和数据
	handleSpeedoption = {
//		    title: {
//	        text: '折线图堆叠'
//	    },
	    tooltip: {
	        trigger: 'axis'
	    },
	    legend: {
	        data:['处理速度'],
	        right:30,
            textStyle: {  
                fontWeight: 'normal',              
                color: '#fff'  
            },
            selectedMode: false,//禁止点击
	    },
	    grid: {
	        left: '3%',
	        right: '4%',
	        bottom: '3%',
	        containLabel: true
	    },
	    xAxis: {
	        type: 'category',
	        boundaryGap: false,
	        data: ['0','10','20','30','40'],
	        axisLine:{
                lineStyle:{
                    color:'#fff'
                }
            },
	    },
	    yAxis: {
	        type: 'value',
	        axisLine:{
                lineStyle:{
                    color:'#fff'
                }
            },
	    },
	    series: [
	        {
	            name:'处理速度',
	            type:'line',
	            //stack: '总量',
	            data:[5, 12, 4, 7, 3],
        	   label:{
	        	   normal:{
	        	   show:true,            //显示数字
	        	   position: 'top' ,       //这里可以自己选择位置
	        	   color:'#fff',
	        	   }
        	   },
	        },

	    ]
	};
   // 使用刚指定的配置项和数据显示图表。
   handleSpeed.setOption(handleSpeedoption);
   

	var alarmSource = echarts.init(document.getElementById('alarmSource'));
   var alarmSourceOption = {
    title : {
        text: '南丁格尔玫瑰图',
        x:'right',
        textStyle: {  
            fontWeight: 'normal',              
            color: '#fff'  
        },
    },
    tooltip : {
        trigger: 'item',
        formatter: "{a} <br/>{b} : {c} ({d}%)"
    },
    legend: {
        x : 'center',
        y : '0',
        data:['rose1','rose2','rose3','rose4','rose5'],
    },
    toolbox: {
        show : true,
        feature : {
            mark : {show: true},
            magicType : {
                show: true,
                type: ['pie', 'funnel']
            },
        }
    },
    calculable : true,
    series : [
        {
            name:'面积模式',
            type:'pie',
            radius : [30, 110],
            center : ['50%', '50%'],
            roseType : 'area',
            data:[
                {value:10, name:'rose1'},
                {value:12, name:'rose2',itemStyle:{color:'yellow'}},
                {value:14, name:'rose3'},
                {value:16, name:'rose4'},
                {value:18, name:'rose5'},
            ]
        }
    ]
};
   alarmSource.setOption(alarmSourceOption);

})